import request from '@/utils/request'

// 商品分页和搜索
export const commodityGetListService = (params) =>
  request.get('/commodity/list', { params })
// 商品新增或修改
export const commodityPublishService = (data) =>
  request.post('/commodity/add', data)
export const artEditService = (data) =>
  request.post('/commodity/update', data)
// 商品
export const commodityGetDetailService = (commodityId) =>
  request.get(`/commodity/${commodityId}`)
